package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.JalonDao;
import com.aerotechnic.entities.Jalon;
import com.aerotechnic.service.interfaces.JalonBoIn;

@Service("JalonBo")
@Transactional
public class JalonBo implements JalonBoIn {
	
	@Autowired
	private JalonDao jalonDao;

	@Override
	public void save(Jalon myEntity) {
		// TODO Auto-generated method stub
		jalonDao.save(myEntity);
		
	}

	@Override
	public void update(Jalon myEntity) {
		// TODO Auto-generated method stub
		jalonDao.update(myEntity);
		
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		jalonDao.delete(id);
	}

	@Override
	public Jalon findByID(Long id) {
		// TODO Auto-generated method stub
		return jalonDao.findByID(id);
	}

	@Override
	public List<Jalon> findAll() {
		// TODO Auto-generated method stub
		return jalonDao.findAll();
	}

	@Override
	public List<Jalon> find(int jtStartIndex, int jtPageSize) {
		// TODO Auto-generated method stub
		return jalonDao.find(jtStartIndex, jtPageSize);
	}

}
